
export default{
    namespaced: true,
    state:{
        addresslist:[]
    },
    mutations:{
        addAddress(state, value){
            state.addresslist.push( value )
            localStorage.setItem('addrlist', JSON.stringify( state.addresslist ))
        }

    },
    actions:{
        addAddress({commit}, value ){
            commit( 'addAddress', value )
            
        }
    }
}